#!/usr/bin/python3

import Mesh
from dxfwrite import DXFEngine as dxf

a = Mesh.Mesh("cone.ase")
d = dxf.drawing("cone_o.dxf")

print(a.bounding_box())

a.delete_faces_with_vertices_on_box()
a.slice_at_axis_value('x', -187)

a.project_from_plane_to_plane('x', -187, -187, 1)

a.write_to_DXF(dxf, d)
d.save()

import sys
sys.exit()

#a.project_to_ymax()
#a.eliminate_shared_edges()



a.delete_faces_with_minus_v_normal()
a.delete_unused_vertices()




